<script setup lang="ts">
import type { LocationData } from "~/api/location";

defineOptions({
  name: "Location",
});

const { data, pending, error, refresh } = useHttp<LocationData>(
  "/system/area/getLocationInfoByIp"
);
</script>

<template>
  <div>{{ data.province }}{{ data.city }}</div>
</template>

<style lang="scss" scoped></style>
